Nevron .NET Vision
Nevron.GraphicsCore Namespace / NPointFList Class / Simplify Method / Simplify(IList<NPointF>,Single) Method
List of points.
The tolerance (if all points from i to j are within tolerance with the line segment i-j then the chain i, i+1, ..., j is simplified to i, j).


In This Topic
    Simplify(IList<NPointF>,Single) Method
    In This Topic
    Returns a simplified version of this sequence of points using an improved version Douglas and Peucker algorithm (uses path hulls) which improves the worst case running time from O(n^2) to O(n * log2(n)). Topology is preserved.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Simplify( _
       ByVal points As System.Collections.Generic.IList(Of NPointF), _
       ByVal tolerance As System.Single _
    ) As NPointFList
    'Usage
     
    
    Dim points As System.Collections.Generic.IList(Of NPointF)
    Dim tolerance As System.Single
    Dim value As NPointFList
     
    value = NPointFList.Simplify(points, tolerance)
    public static NPointFList Simplify( 
       System.Collections.Generic.IList<NPointF> points,
       System.float tolerance
    )

    Parameters

    points
    List of points.
    tolerance
    The tolerance (if all points from i to j are within tolerance with the line segment i-j then the chain i, i+1, ..., j is simplified to i, j).

    Return Value

    Returns a simplified version of this sequence of points.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also